﻿<div class="wrapper border-bottom white-bg page-heading">
	<div class="col-lg-pull-12">
		<ol class="breadcrumb">
			<li class="active">角色权限</li>
		</ol>
	</div>
</div>
<div ng-controller="roleController">
	<div class="row ui-box">
		<div class="col-md-8">
			<a class="btn btn-primary btn-sm" ui-sref="app.manage.role_detail({action:'add'})"><i class="fa fa-plus"></i> 添加</a>
		</div>
		<div class="col-md-4">
			<div class="input-group">
				<input type="text" class="form-control input-sm" ng-model="name" placeholder="名称">
				<span class="input-group-btn">
					<button class="btn btn-primary btn-sm" type="button" ng-click="search()"><i class="fa fa-search"></i> 查询</button>
				</span>
			</div>
		</div>
	</div>
	<table class="table table-hover m-t-md">
		<thead>
			<tr style="background-color: #f7f7f9;">
				<th>名称</th>
				<th>备注</th>
				<th width="130">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="item in model">
				<td>{{item.name}}</td>
				<td>{{item.remark}}</td>
				<td>
					<a class="btn btn-primary btn-xs" ui-sref="app.manage.role_detail({action:'edit',id:{{item.id}}})"><i class="fa fa-cog"></i> 编辑</a>
					<button class="btn btn-primary btn-xs" ng-click="remove(item)"><i class="fa fa-trash"></i> 删除</button>
				</td>
			</tr>
		</tbody>
	</table>
</div>